<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="RINT.html">RINT(3)</A></B> 	       FreeBSD Library Functions Manual 	       <B><A HREF="RINT.html">RINT(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>rint</B>, <B>rintf</B> - round to integral value in floating-point format


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;math.h&gt;</B>

     <I>double</I>
     <B>rint</B>(<I>double</I> <I>x</I>)

     <I>float</I>
     <B>rintf</B>(<I>float</I> <I>x</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>rint</B>() and the <B>rintf</B>() functions return the integral value (repre-
     sented as a double or float precision number) nearest to <I>x</I> according to
     the prevailing rounding mode.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="abs.html">abs(3)</A></B>,  <B><A HREF="ceil.html">ceil(3)</A></B>,	<B><A HREF="fabs.html">fabs(3)</A></B>,  <B><A HREF="floor.html">floor(3)</A></B>,  <B><A HREF="ieee.html">ieee(3)</A></B>,  <B><A HREF="math.html">math(3)</A></B>


</PRE>
<H2>HISTORY</H2><PRE>
     A <B>rint</B>() function appeared in Version 6 AT&amp;T UNIX.

BSD				March 10, 1994				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
